package com.usian;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2023 11 30 13 54
 **/

@SpringBootApplication
@MapperScan("com.usian.residentialquarters.mapper")
public class ResidentialQuartersApp {


    @Bean
    PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
    public static void main(String[] args) {
        SpringApplication.run(
                ResidentialQuartersApp.class,
                args
        );
    }
}
